﻿#pragma once

#include "Render/PreRender/PreRenderWidgets.h"

class CVulkanWindow;

class CVulkanRingWidget
{
public:
    void BindData(const SPreRenderRingWidget& InData);
   
    void Draw(vk::CommandBuffer CommandBuffer);

protected:
    SPreRenderRingWidget Data;

};

//绘制所有的环形控件
class CVulkanRingWidgets
{
public:
    ~CVulkanRingWidgets();

    void PreProcess(const TVector<SPreRenderRingWidget>& AllRingData);

    void CreateSelfRecordTasks(CVulkanWindow *InRenderSurface
        ,SRenderCommandBuffers &OutCmdBuffersToExecute);
protected:
    TVector<CVulkanRingWidget> RingWidgets;

    vk::CommandBuffer CommandBuffer;
};
